package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderManager;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @version 1.0
 * @auther gwt
 * @date 2021/6/23 19:31
 */
@Service
public interface OrderService {
    Result order(Map map) throws Exception;

    Map findById(Integer id) throws Exception;


    PageResult findPage(QueryPageBean queryPageBean) throws Exception;

    void add(OrderManager orderManager) throws Exception;

    void edit(OrderManager orderManager);

    Order findOrderById(Integer id);

    List<Integer> findSetmealIdsByOrderId(Integer id);
}
